<%
/**
 *  构造非根节点api
 *
 *  $Author: amon_lei $
 *  $Date: 2004/12/15 13:52:09 $
 *  $Revision: 1.4 $ 
 *  created in 2004-12-12
 */
%>
<%!
         /**
          * @ param: id
          * @ param: name
          * @ param: nodeType
          * @ param: onclickJS
          * @ param: superId
          * @ param: openImg
          * @ param: closeImg
          */
         public String makeNoRootNodeView(String id,
                                          String name,
                                          String nodeType,
                                          String onclickJS,
                                          String superType,
                                          String superId,
                                          String openImg,
                                          String closeImg)
         {
                StringBuffer treeNode=new StringBuffer(500);
                treeNode.append("var Node");
                // 获取当前节点id
                treeNode.append(nodeType);
                treeNode.append(id);
                treeNode.append(" =new ");
                treeNode.append("WebFXTreeItem");
                treeNode.append("(\"");
                // 获取当前节点名称
                treeNode.append(name);
                treeNode.append("\", ");
                treeNode.append("\"javascript:");
                // 节点点击触发事件
                treeNode.append(onclickJS);
                treeNode.append("\",");
                // 父节点id
                treeNode.append("Node");                
                treeNode.append(superType);
                treeNode.append(superId);
                treeNode.append(",\"");
                // 展开前图片
                treeNode.append(closeImg);
                treeNode.append("\"" + ",\"");
                // 展开后图片
                treeNode.append(openImg);
                //节点id
                treeNode.append("\",\"");
                treeNode.append(id);
                treeNode.append("\",\"");
                //节点类型
                treeNode.append(nodeType);
                treeNode.append("\");");
                return treeNode.toString();	
         }
%>
